<?php 
class App_model_router extends Model {
    private $table_router = 'router';
    
    
    public function get_info($module, $action) {
        $module = trim($module);
        $action = trim($action);
        
        return $this->db->select_row(
            $this->table_router, 
            array('id', 'access_mode'), 
            array('module' => $module, 'action' => $action)
        );
    }
}
?>